import { Sequelize } from 'sequelize';
import { databaseConfig } from '../config';

const sequelize = new Sequelize(
  databaseConfig.database,
  databaseConfig.username,
  databaseConfig.password,
  {
    host: databaseConfig.host,
    port: databaseConfig.port,
    dialect: databaseConfig.dialect,
    pool: databaseConfig.pool,
    logging: databaseConfig.logging,
    timezone: databaseConfig.timezone,
  }
);

export default sequelize; 
 